import ajax from "./ajax"
import mockAjax from "./mockAjax"
//三级分类数据接口函数
export const reqCategoryList = () =>
  ajax({ url: "/product/getBaseCategoryList", method: "get" })

//这是请求轮播图数据接口函数
export const reqBannerList = () => mockAjax({ url: "/banner", method: "get" })

//这是请求楼层数据接口函数
export const reqFloorList = () => mockAjax({ url: "/floor", method: "get" })

//这是请求商品数据的接口函数
export const reqGoodsInfo = (searchParams) =>
  ajax({ url: "/list", method: "post", data: searchParams })
